﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Smart.Data
{
    /// <summary>
    /// 数据源接口
    /// </summary>
    public interface IDataSource
    {
        /// <summary>
        /// 连接字符串格式
        /// </summary>
        string FormatString { get; set; }

        /// <summary>
        /// 数据库类型
        /// </summary>
        string Provider { get; set; }

        /// <summary>
        /// 服务器
        /// </summary>
        string Server { get; set; }

        /// <summary>
        /// 端口
        /// </summary>
        string Port { get; set; }
        /// <summary>
        /// 数据库
        /// </summary>
        string Model { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        string Password { get; set; }

        /// <summary>
        /// 连接字符串
        /// </summary>
        /// <returns></returns>
        string ToConnectionString();
    }
}
